<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>

 <script>
    $.ajax({
    url: '/api/login',
    type: 'POST',
    data: {
      username: 'dafei',
      password: '123456'
    }
  }).then(function(res) {
    console.log(res);
  })
  $.ajax({
    url: '/api/getIndent',
    type: 'GET'
  }).then(function(res) {
    console.log(res)
  })
 </script>
</body>
</html>